package com.bnlr.lrparking.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.bnlr.lrparking.R;
import com.bnlr.lrparking.model.RechargeListM;

import java.util.List;


/**
 * Created by rr on 2016/7/2.
 * 充值记录列表
 */
public class RechargeListAdapter extends BaseQuickAdapter<RechargeListM.DataBean,BaseViewHolder> {

    public RechargeListAdapter(List<RechargeListM.DataBean> data) {
        super(R.layout.item_recharge,data);
    }

    @Override
    protected void convert(BaseViewHolder holder, RechargeListM.DataBean item) {
        holder.setIsRecyclable(false);
        String text;
        switch (item.getType()) {
            case 1:
                text = "";
                break;
        }
        holder.setText(R.id.item_rechargetype,item.getDescription()+"");
        holder.setText(R.id.item_time,item.getCreateTime());
        holder.setText(R.id.tv_price_re,item.getShareValue()+"");
        holder.setText(R.id.tv_money,item.getMoney());
    }

}
